cmake_minimum_required(VERSION 3.16)
project(udp_loss_test LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 COMPONENTS Core Network REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Network REQUIRED)
include_directories(${TCOURSE_INTERFACEDIR})
set(PRJ_SOURCES
    udp_loss_test.cpp
    udp_loss_test.h
)
#############Target======================

add_executable(udp_loss_test
    ${PRJ_SOURCES}
)
target_link_libraries(udp_loss_test
    Qt${QT_VERSION_MAJOR}::Core
    Qt${QT_VERSION_MAJOR}::Network
)

